import request from '@/utils/request'
// 获取角色权限列表
export const getRolesList = () => request({
  url: 'rights/list',
  method: 'GET'
})
// 获取角色权限树状图
export const getRolesTree = () => request({
  url: 'rights/tree',
  method: 'GET'
})
// 修改角色权限树
export const postRolesTree = (id, rids) => request({
  url: `roles/${id}/rights`,
  method: 'POST',
  data: {
    rids
  }
})
// 删除角色权限树状图三级分类
export const deleteRolesTree = (id1, id2) => request({
  url: `roles/${id1}/rights/${id2}`,
  method: 'DELETE'
})
